package com.sure0000.basic;

import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

import java.time.LocalDateTime;

/**
 * @program: demo
 * @description: 定时执行任务
 * @author: xuyouchang@supcon.com
 * @create: 2019-12-26 10:46
 **/
public class QuartzCronJob implements Job {

    @Override
    public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
        LocalDateTime now = LocalDateTime.now();
        System.out.println(now);
    }
}
